import Api from "./api"

class Auth extends Api {
    login(data) {
        return this.post('/login', data)
    }

    logout() {
        localStorage.removeItem('token');
        window.location.href = '/login';
    }

}
export default new Auth('/auth')